package com.agann.util;

import java.util.LinkedList;

public abstract class Util {
	
	protected double score;
	protected int n;
	/**
	 * Store last n records
	 */
	protected LinkedList<Double> history;
	
	public Util(int n) {
		this.n = n;
		score = 0;
		history = new LinkedList<Double>();
	}
	
	
	public abstract void update(Double num);

	public double getScore() {
		return score;
	}

}
